package com.c.ctgproject.wiget.common

import android.content.Context
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatEditText
import android.text.InputFilter.LengthFilter

import android.text.InputFilter




class CommonEditText(context: Context, attr: AttributeSet? = null) : AppCompatEditText(context, attr) {
    init {
        //最大输入字符设置为20
        val filters = arrayOf<InputFilter>(LengthFilter(30))
        setFilters(filters)
    }
}